package com.fesine.ch02.synchronizedUpdateNewValue;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2016/7/15 11:26
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/7/15 11:26
 */
public class Run {
    public static void main(String[] args) {
        Service service = new Service();
        ThreadA threadA = new ThreadA(service);
        threadA.start();
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        ThreadB threadB = new ThreadB(service);
        threadB.start();
        System.out.println("已经发起停止的命令了！");
    }
}
